//
//  ZMOrderListScreeningCell.m
//  dudu_oc_master
//
//  Created by mac on 2020/3/13.
//  Copyright © 2020 Shawn Ma. All rights reserved.
//

#import "TJOrderListScreeningCell.h"
#import "TJOrderListScreeningModel.h"

@interface TJOrderListScreeningCell()

@property (weak, nonatomic) UILabel *textLabel;

@end

@implementation TJOrderListScreeningCell


- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    

        UILabel *textLabel = [UILabel lableWithSuperView:self.contentView font:UIFont_Px(14) color:UIColor.whiteColor title:@"" textAlignment:NSTextAlignmentCenter];
        [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.offset(0);
        }];
        
        _textLabel = textLabel;
    }
    return self;
}

- (void)setModel:(TJOrderListScreeningModel *)model {
    _model = model;
    
    _textLabel.text = model.text;
    
    if (model.isSelect) {
 
        _textLabel.backgroundColor = UIColor.tj_mainColor;
        _textLabel.textColor = UIColor.whiteColor;
    } else {
 
        _textLabel.backgroundColor = UIColor_Hex(0xF5F5FB);
        _textLabel.textColor = UIColor_Hex(0x999999);
    }
    
}


@end
